package com.techshinogongjian.fp.func;

import com.techshinogongjian.fp.comm.BluetoothComm;
import com.techshinogongjian.fp.comm.MsgCallback;
import com.fingerUsb.FingerResult;
import com.techshinogongjian.fp.util.FpConst;

/**
 * 蓝牙指纹API
 * 
 * @author wangzhi
 */
public class BluetoothFunc extends IFingerprintFunc {

	private static final String TAG = BluetoothFunc.class.getSimpleName();

	private BluetoothComm mComm;

	public BluetoothFunc(BluetoothComm comm) {
		mComm = comm;
	}

	@Override
	public FingerResult tcGetDevFWInfo() {
		return new FingerResult(FpConst.TCY_NSUP);
	}

	@Override
	public int tcDevDetect(int nPort, String sPort) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public FingerResult tcGetDevSn() {
		// TODO Auto-generated method stub
		return new FingerResult(FpConst.TCY_NSUP);
	}

	@Override
	public FingerResult tcGetImage(int nTimeout) {
		// TODO Auto-generated method stub
		return new FingerResult(FpConst.TCY_NSUP);
	}

	@Override
	public int tcIsPressed(int nTimeout) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public FingerResult tcGetFeature(int nTimeout) {
		// TODO Auto-generated method stub
		return new FingerResult(FpConst.TCY_NSUP);
	}

	@Override
	public FingerResult tcGetTemplate(int nTimeout) {
		// TODO Auto-generated method stub
		return new FingerResult(FpConst.TCY_NSUP);
	}

	@Override
	public int tcCancel() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public boolean isConnected() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public FingerResult tcGetResult() {
		// TODO Auto-generated method stub
		return new FingerResult(FpConst.TCY_NSUP);
	}

	@Override
	public FingerResult tcSetSecurityLevel(int level) {
		return new FingerResult(FpConst.TCY_NSUP);
	}

	@Override
	public FingerResult tcVerify(long fid, MsgCallback callback, int timeout) {
		return new FingerResult(FpConst.TCY_NSUP);
	}

	@Override
	public FingerResult tcSetTemplate(long fid, byte[] data) {
		return new FingerResult(FpConst.TCY_NSUP);
	}
	
	@Override
	public FingerResult tcEnroll(MsgCallback callback, int timeout) {
		return new FingerResult(FpConst.TCY_NSUP);
	}

	@Override
	public boolean isCancel() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean isBusy() {
		// TODO Auto-generated method stub
		return mComm.isBusy();
	}

	@Override
	public FingerResult tcSetEnrollImageCount(int newCount) {
		return new FingerResult(FpConst.TCY_NSUP);
	}

	@Override
	public FingerResult tcBooTL() {
		return new FingerResult(FpConst.TCY_NSUP);
	}

}
